import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class EditInfoDto {
    @ApiProperty({
        description:'账号'
    })
    @IsNotEmpty({
        message:'账号不能为空'
    })
    account: string;

    @ApiProperty({
        description:'头像',
        required:false
    })
    headimg: string;

    @ApiProperty({
        description:'昵称'
    })
    @IsNotEmpty({
        message:'昵称不能为空'
    })
    nickname: string;
}
